window.onload=function (){
    this.getRecommand()
}

function  getRecommand(){
    $ajax({
        url:recommand,
        method:"get",
        success:function (e){


            if(e.code===200){
                console.log(e)

            const ul=document.querySelector('.classify-sublist')
            let result=e.playlists;
            console.log(result);
                let str='';
                result.forEach(item=>{
                    str+=`<li class="start-sublist-items">
                        <div class="start-pic">
                            <a href="" class="start-link">
                                <img src="${item.coverImgUrl}" alt="" class="start-link-img">
                                <i class="icon-bg"></i>
                            </a>
                        </div>
                        <div class="start-content">
                            <h3 class="start-con-title">
                                <a href="" class="start-con-link">${item.description}</a>
                            </h3>
                            <p class="start-con-info"><a href="" class="start-con-author">${item.name}</a></p>
                            <p class="sec-con-desc">播放量：<span class="colorlevel3">${item.playCount}</span>万</p>
                        </div>
                    </li>`
                })
                ul.innerHTML=str;
            }
        }

    })
}